<template>
  <div>axios页面</div>
</template>

<script setup lang="ts">
import API from '@/api/index'
const GetMethod = () => {
  const requestRes = async () => {
    const result = await API.login('zhangsan', '123456')
    console.log(result)
  }
  requestRes()
}
GetMethod()
</script>

<style scoped lang="less"></style>
